home *** CD-ROM | disk | FTP | other *** search
- package kool;
-
- import gamelib.GameAction;
-
- class KoolScreen$2 extends GameAction {
- int[][] anim;
- int animCount;
- // $FF: synthetic field
- private final KoolScreen this$0;
-
- KoolScreen$2(KoolScreen this$0) {
- this.this$0 = this$0;
- this.anim = new int[][]{{0, -2}, {0, -4}, {1, -2}, {2, 1}, {2, 4}, {3, 7}, {3, 11}, {3, 15}};
- this.animCount = 0;
- }
-
- public void performAction() {
- this.this$0.player.setPosition(this.this$0.player.getXPosition() + this.anim[this.animCount][0], this.this$0.player.getYPosition() + this.anim[this.animCount++][1]);
- }
-
- public boolean isOver() {
- boolean over = this.animCount >= this.anim.length;
- if (over) {
- KoolScreen.access$0(this.this$0, 4);
- }
-
- return over;
- }
- }
-